﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;
using Microsoft.Xna.Framework.Net;
using Microsoft.Xna.Framework.Storage;

namespace DwarfFortClone
{
    class Tilemap
    {
        List<TileLayer> layers;

        public Tilemap()
        {
            this.layers = new List<TileLayer>();
        }

        public void AddLayer(TileLayer layer)
        {
            layers.Add(layer);
        }

        public void LoadContent()
        {
            foreach (TileLayer layer in layers)
            {
                layer.LoadContent();
            }
        }

        public void Draw(SpriteBatch spriteBatch)
        {
            foreach (TileLayer layer in layers)
            {
                layer.Draw(spriteBatch);
            }
        }
    }
}
